<!--# layout("/common/layout.html",{"jsBase":"/js/admin/role/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
	<div class="layui-row" style="margin-left: 50px;">
		<div class="layui-form-item">
			<label class="layui-form-label">角色名称<em style="color: red;">*</em></label>
			<div class="layui-input-inline">
				<input type="text" name="name"  value="${role.name}" class="layui-input" lay-verify="required">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">角色代码<em style="color: red;">*</em></label>
			<div class="layui-input-inline">
				<input type="text" name="code"  lay-verify="required" class="layui-input" value="${role.code}" >
			</div>
		</div>

	</div>

	<input type="hidden" name="id" value=${role.id} />
	
	<layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
  var roleEdit = layui.edit
  roleEdit.init();
});

</script>
